#pragma once

#include "head.h"

class Parser
: public NoCopyable{
private:
    static ParserPtr parser_;

    Parser();
    void doCD( const char *buf);
    void doOther( const char *buf);
public:
    ~Parser();

    static ParserPtr getInst();
    void parse(const Protocol &proto);
};